<div class="content_article">
<form class="clearfix" method="POST" action="<?php echo base_url().'user/changepass/';?>">
    <div class="mota">
        <div class="img_list_group">
                Change password
        </div>
    </div> 
    <?php if(!$this->session->userdata('doipass')):
            echo validation_errors(); 
            echo $this->session->userdata('loidoipass');
    ?>
    <table class="tb_group clearfix"> 
        
        <tr>
            <td>Current Password</td>
            <td>
                <input value="" class="span300" type="password" name="oldpassword" />
            </td>
            
        </tr> 
        
        <tr>
            <td>New Password</td>
            <td>
                <input value="" class="span300" type="password" name="password" />
            </td>
            
        </tr> 
        
        <tr>
            <td>Confirm Password</td>
            <td>
                <input value="" class="span300" type="password" name="passconf" />
            </td>
            
        </tr> 
        
                             
        <tr><td colspan="2" class="submit_td"><input type="submit" value="Submit" /></td></tr> 
    </table>
    <?php else:
    echo 'Đổi mật khẩu thành công';
    $this->session->unset_userdata('doipass') ;  
    endif;?>       
               
</form>
</div>

